import fetch from './fetch'

export function sendLoginSMS({ mobile }) {
	return fetch({
		url: 'insurance/sendLoginSMS',
		method: 'get',
		params: { mobile }
	})
}

export function doLogin({ username, password }) {
	return fetch({
		url: 'insurance/doLogin',
		method: 'get',
		params: { password, username }
	})
}

export function doSMSLogin({ mobile, code }) {
	return fetch({
		url: 'insurance/doSMSLogin',
		method: 'get',
		params: { mobile, code }
	})
}
